.tree-hole-room {
  background-color: #eaedf2;
  @local-background-color: #ededed; // 局部背景颜色

  .hide{
    display: none;
  }

  &-header {
    display: flex;
    height: 40px;
    line-height: 40px;

    // padding: 0 30px 0;
    font-size: 14px;
    background-color: #ededed;
    box-shadow: inset 0 0 0 white, inset 0 0 0 white, inset 0 0 0 white,
      inset 0 -1px 1px rgba(0, 0, 0, 0.1);

    text-align: center;

    &__back {
      width: 30px;
    }
    &__name {
      width: 250px;
    }
    &__power {
      width: 40px;
      display: block;
    }
  }
  &__message-container{
    display: flex;
    flex-direction: column;
  }
  &-messages {
    height: calc(100vh - 40px - 40px); // 40头部像素 40底部输入长度
    background-color: #edeef2;
    font-size: 12px;
    overflow-y: scroll;
    position: relative;

    .pic-msg-thumb{
      max-width: 180px;
      max-height:180px;
    }

    &-receive {
      display: flex;
      position: relative;
      margin: 15px 0;

      &__avatar {
        width: 55px;
        text-align: center;

        img {
          width: 35px;
          height: 35px;
          border-radius: 25%;
        }
      }

      &__message {
        display: flex;
        position: relative;
        height: max-content;

        &::before {
          content: "";
          position: absolute;
          left: -6px;
          top: 10px;
          width: 0px;
          height: 0px;
          border-top: 4px solid transparent;
          border-right: 6px solid white;
          border-bottom: 4px solid transparent;
        }

        background-color: white;
        padding: 8px;
        font-size: 12px;
        border-radius: 5px;
        margin-right: 20px;
        max-width: 210px;
      }
    }

    &-send {
      display: flex;
      position: relative;
      margin: 15px 0;
      flex-direction: row-reverse;

      &__actions {
        width: 30px;
      }

      &__avatar {
        width: 55px;
        text-align: center;

        img {
          width: 35px;
          height: 35px;
          border-radius: 25%;
        }
      }

      &__message {
        display: flex;
        position: relative;
        height: max-content;

        &::before {
          content: "";
          position: absolute;
          right: -6px;
          top: 10px;
          width: 0px;
          height: 0px;
          border-top: 4px solid transparent;
          border-left: 6px solid #0084ff;
          border-bottom: 4px solid transparent;
        }

        background-color: #0084ff;
        padding: 8px;
        font-size: 12px;
        border-radius: 5px;
        max-width: 210px;
        color: #ffffff;
      }
    }

    &-join {
      text-align: center;
      padding: 5px 0;
      font-size: 10px;
    }
  }

  @emji-height: 200px;

  &-messages-emoji-visi {
    height: calc(
      100vh - 40px - 40px - @emji-height
    ); // 40头部像素 40底部输入长度
  }

  &-emoji {
    border: 1px solid #eaeaea;
  }
  .tree-hole-room-bottom {
    background-color: @local-background-color;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.05);
  }

  &-form {
    display: flex;
    // position: absolute;
    // bottom: 0px;
    // left: 0px;
    // right: 0px;
    width: 320px;
    height: 40px;

    align-items: center;

    &-attach {
      background: url(../../../assets/theme/attach@2x.png) no-repeat center;
      width: 14px;
      height: 24px;
      padding-left: 33px;
    }

    &-input {
      width: 220px;
      display: flex;
      align-items: center;

      input {
        width: 100%;
        border: none;
        padding: 5px 6px;
        -webkit-tap-highlight-color: transparent;
      }
    }

    &-emotion {
      background: url(../../../assets/theme/emojis@2x.png) no-repeat center;
      width: 22px;
      height: 22px;
      padding-left: 13px;
    }

    &-send {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(54, 69, 86, 1);
      display: flex;
      margin-left: 10px;

      &-icon {
        background: url(../../../assets/theme/Send.png) no-repeat center;
        width: 14px;
        height: 14px;
        display: inline-block;
      }
    }
  }
}
